﻿using System;

namespace CommonUtils.CommandLine
{
    /// <summary>
    /// Command line item handler attribute
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
    public abstract class CommandLineItemHandlerAttribute: Attribute
    {
        #region Properties

        /// <summary>
        /// Command to handle name
        /// </summary>
        public string ItemName
        {
            get;
            private set;
        }

        #endregion

        #region Constructors

        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="itemName">Command to handle name</param>
        protected CommandLineItemHandlerAttribute(string itemName)
        {
            ItemName = itemName;
        }

        #endregion
    }
}